<?php
/**
 * CacheKey.php
 * @copyright (c) 2011-2020, Hangzhou DOJI Tech Co., Ltd.
 * This is NOT a freeware, use is subject to license terms.
 * @package CacheKey.php
 * @link https://www.tingjunapp.com/
 * @author wujun@lanqb.cn
 * @: CacheKey.php 310000 2020-11-07 11:03:46 $
 * */

namespace App\Models\Cache;

class CacheKey
{

    // PV/UV转发统计
    public const FORWARD_USER = 'forward_user';

    // PV/UV分享统计
    public const SHARE_USER = 'share_user';

    // 用于统计活跃统计和登陆方式
    public const USER_ACCESS_ACTIONS = 'userAccessActions';

    // 用于前台登陆后用户Token入缓存
    public const USER_TOKEN = 'userToken';

    // 将用户关注的标签存入缓存
    public const USER_ATTENTION_TAG = 'userAttentionTag';

    // 用于微信登录的授权信息入缓存
    public const AUTH_USER = 'authUser';

    // 用户关注的作者入缓存
    public const USER_ATTENTION_AUTHOR = 'userAttentionAuthor';

    // 用户关注的所有用户入缓存
    public const USER_ATTENTION = 'userAttention';

    // 行业
    public const INDUSTRY = 'industry';

    // 职业
    public const JOB = 'job';

    // 学历
    public const EDUCATION = 'education';

    // 游客
    public const TOURIST = 'user:tourist:';

    // 防止频繁使用refresh_token刷新access_token
    public const AVOID_OFTEN_REFRESH_TOKEN = 'login:refresh:';

    public const COMMENT_COUNT = 'comment:count:';

}
